﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using PPIDesktopClient.General;

namespace PPIDesktopClient
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {

            try
            {
                if (Preloader.StartVerified())
                {
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new frmMain());
                }
            }
            catch (Exception ex)
            {
                Application.ExitThread();
                ErrorManager.Log("Exception", "Main" + ex.TargetSite, ex.Message, ex.StackTrace); 
            }
        }
    }
}
